package Demo5.dao;


import org.springframework.stereotype.Repository;

@Repository
public class UserDAOImpl implements IUserDAO {
    @Override
    public boolean findUser() {
        double r = Math.random();
        if(r>0.5){
            System.out.println("UserDAO:找到用户并返回");
            return true;
        }
        else {
            System.out.println("UserDao:未找到用户");
            return false;
        }
    }
}
